mudbox::VertexEnumerator Class Reference

#include <mesh.h>

List of all members.


Detailed Description

To use this class, derive a new enumerator from it.

Override the Operator() method to perform the operation you need done to the mesh vertex. You must also override the Tester() method to test vertices to see if they should be included in the operation.

To use your class, call Mesh::EnumerateVertices, specify a starting face and vertex, and pass in your enumerator class. Starting with the specified vertex, your operation will be applied to adjacent vertices. If your Tester method returns false for a given vertex, then that vertex will not be processed, nor will the operation be propagated to its neighbors.


Public Member Functions

virtual void  Operator (class Mesh *pMesh, unsigned int iVertexIndex, unsigned int iFaceIndex)
virtual bool  Tester (class Mesh *pMesh, unsigned int iVertexIndex, unsigned int iFaceIndex)

Member Function Documentation

virtual void mudbox::VertexEnumerator::Operator class Mesh pMesh,
unsigned int  iVertexIndex,
unsigned int  iFaceIndex
[virtual]
 
Parameters:
pMesh  [in] pointer to the mesh being processed
iVertexIndex  [in] index of the vertex being processed
iFaceIndex  [in] index of a face associated with the vertex being processed (chosen at random)
virtual bool mudbox::VertexEnumerator::Tester class Mesh pMesh,
unsigned int  iVertexIndex,
unsigned int  iFaceIndex
[virtual]
 
Parameters:
pMesh  [in] pointer to the mesh being processed
iVertexIndex  [in] index of the vertex being processed
iFaceIndex  [in] index of a face associated with the vertex being processed (chosen at random)

mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator
mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator mudbox::VertexEnumerator